<?php

namespace Trawind\Remotes\Repositories\Finance\Setups;

use Trawind\Basics\Enums\ServiceDomain;
use Trawind\Remotes\BaseRepository;
use Trawind\Basics\Traits\RepositoryEnhance;
use Prettus\Repository\Criteria\RequestCriteria;
use Trawind\Remotes\Repositories\User\UserRepositoryEloquent;
use Trawind\Remotes\Contracts\Repositories\Finance\Setups\TermRepository;

/**
 * Class TermRepositoryEloquent.
 *
 * @package namespace TrawindCloud\Repositories\Finance\Setups;
 */
class TermRepositoryEloquent extends BaseRepository implements TermRepository
{

    public $baseRoute='/setup/terms';
    
    public function __construct()
    {
        $this->domain=ServiceDomain::FINANCE_DOMAIN();
    }


    public function all($columns = ['*'])
    {
        return $this->setUrl($this->baseRoute)->result();
    }

    public function find($id, $columns = ['*'])
    {
        return $this->setUrl($this->baseRoute.'/'.$id)->result();
    }

    public function create(array $attributes)
    {
        // TODO: Implement create() method.
    }

    public function update(array $attributes, $id)
    {
        // TODO: Implement update() method.
    }


}
